package com.hk.commons.entity.sys;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 系统模块
 * 
 * @author saga
 * 
 */
@Entity
@Table(name = "SysModule")
public class SysModule implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6617898979860644889L;

	@Id
	@Column(name = "Id", length = 20)
	private Long id;

	@Column(name = "Name", length = 20)
	private String name;

	@Column(name = "Code", length = 10)
	private String code;

	@Column(name = "Description", length = 20)
	private String descp;

	@Column(name = "CreatedTS")
	private Long createdts = System.currentTimeMillis();

	@Column(name = "Creator", length = 20)
	private String creator;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescp() {
		return descp;
	}

	public void setDescp(String descp) {
		this.descp = descp;
	}

	public Long getCreatedts() {
		return createdts;
	}

	public void setCreatedts(Long createdts) {
		this.createdts = createdts;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String account) {
		this.creator = account;
	}
}
